import request from '@/utils/request'

export function getUserList(data){
   return request({
      url:'/userlist',
      method:'get',
      params:data
   });
}

export function getUserInfo(data){
   return request({
      url:'/userinfo',
      method:'get',
      params:data
   });
}

export function editUser(data){
    return request({
      url:'/edituser',
      method:'post',
      data:qs.stringify(data)
   });
}

export function delUser(data){
   return request({
      url:'/deluser',
      method:'get',
      params:data
   });
}

export function getAllNations(){
    return request({
       url:'/allnations',
       method:'get'
    });
}
